package com.qp.bookkeeping.common.model.rsp;

/**
 * @author xutianqi
 */
public enum BusinessExceptionEnum {
    NULL_DATA("1001", "未查询到数据"),
    REQUESRT_INFO_IS_NULL("1002", "请求信息为空"),
    PHONENUMBBER_IS_NULL("1003", "手机号为空"),
    LOGIN_ERR("3001", "微信登录失败"),
    WX_TOKEN_LOGIN_FAIL("3002", "微信token登录失败"),
    WX_CODE_LOGIN_FAIL_NO_PHONENUMBER("3003", "微信code登录失败,该用户未设置手机号"),
    WX_CODE_LOGIN_FAIL_NO_USER("3004", "未查询到用户"),
    WX_OPENID_IS_NULL("3005", "微信openid为空"),
    WX_REQUEST_BY_CODE_FAIL("3006", "通过code请求openId失败");


    String code;
    String message;

    BusinessExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
